package com.bang.itstack.day18.listener;

import com.bang.itstack.day18.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @ClassName: MQEventListener
 * @Desc: TODO
 * @author: <Bang>
 * @Date: 2021/10/22 18:39
 * @Version: 1.0
 * @Modified By:
 */
public class MQEventListener implements EventListener {

    private Logger logger = LoggerFactory.getLogger(MQEventListener.class);

    @Override
    public void onMessage(LotteryResult result) {
        logger.info("记录用户 {} 摇号结果(MQ)：{}", result.getuId(), result.getMsg());
    }
}
